#define _CRT_SECURE_NO_WARNINGS
#include<iostream>
using namespace std;
template<typename T>
void Swap(T& left, T& right)
{
	T temp = left;
	left = right;
	right = temp;
}

int main()
{
	int a = 0;
	int b = 1;
	double c = 2.4;
	double d = 2.5;
	Swap(a, b);
	Swap(c, d);
	cout << a << b << endl;
	cout << c << d << endl;

	return 0;
}